package io.renren.modules.avanotes.dao;

import io.renren.modules.avanotes.entity.FormworkEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 模板表
 * 
 * @author zzr
 * @email 529742454@qq.com
 * @date 2022-02-21 18:11:05
 */
@Mapper
public interface FormworkDao extends BaseMapper<FormworkEntity> {

    //select id from `formwork` where  FIND_IN_SET(id,"1,2,3");

    /**
     * 查询包含id  的主键们
     * @param str
     * @return
     */
    List<Integer> selectIdsByFindInSet(@Param("str") String str);

    void insertIgnoreBatch(@Param("list") List<FormworkEntity> list);
}
